/*
 * Copyright(c)  2022 厦门外里科技有限公司 All rights reserved.
 *
 * https://www.wailikeji.com
 *
 * 版权所有，侵权必究！
 */

/**
 * 接口列表文件
 * auth代表接口是否需要token
 */
export default {
	loginPhoneCode: {
		url: 'phone/loginPhoneCode',
		auth: false,
		method: 'POST',
		desc: '登录获取验证码',
	},
	loginOrRegisterBySms: {
		url: 'loginOrRegisterBySms',
		auth: false,
		method: 'POST',
		desc: '手机号验证码登录或注册',
	},
	login: {
		url: 'login',
		auth: false,
		method: 'POST',
		desc: '账号密码登录',
	},
	signOut: {
		url: 'signOut',
		auth: true,
		method: 'POST',
		desc: '退出',
	},
	/** 用户 ↓ **/
	user: {
		info: {
			url: 'user/info',
			auth: true,
			method: 'GET',
			desc: '用户信息',
		},
		changePassword: {
			url: 'user/changePassword',
			auth: true,
			method: 'POST',
			desc: '初始化密码或修改密码',
		},
		sign: {
			url: 'user/sign',
			auth: true,
			method: 'POST',
			desc: '签到',
		},
		teamInfo: {
			url: 'user/teamInfo',
			auth: true,
			method: 'GET',
			desc: '团队信息',
		},
		teamList: {
			url: 'user/teamList',
			auth: true,
			method: 'GET',
			desc: '团队列表',
		},
	},
	/** 提现账户 ↓ **/
	userBankCard: {
		list: {
			url: 'userBankCard/list',
			auth: true,
			method: 'GET',
			desc: '提现账户列表',
		},
		bindBankCard: {
			url: 'userBankCard/bindBankCard',
			auth: true,
			method: 'POST',
			desc: '绑定提现账户',
		},
	},

	/** 个人名片 ↓ **/
	personalCard: {
		list: {
			url: 'personalCard/list',
			auth: false,
			method: 'GET',
			desc: '查询个人名片列表',
		},
		seeQrcode: {
			url: 'personalCard/seeQrcode',
			auth: false,
			method: 'GET',
			desc: '查看名片二维码',
		},
		add: {
			url: 'personalCard',
			auth: true,
			method: 'POST',
			desc: '新增个人名片',
		},
		edit: {
			url: 'personalCard',
			auth: true,
			method: 'PUT',
			desc: '修改个人名片',
		},
		delete: {
			url: 'personalCard',
			auth: true,
			method: 'DELETE',
			desc: '修改个人名片',
		},
		myList: {
			url: 'personalCard/myList',
			auth: true,
			method: 'GET',
			desc: '查询我的个人名片列表',
		},
		getMyQrcode: {
			url: 'personalCard/getMyQrcode',
			auth: false,
			method: 'GET',
			desc: '查看我的的名片详情',
		},
		top: {
			url: 'personalCard/top',
			auth: true,
			method: 'POST',
			desc: '置顶个人名片',
		},
	},

	/** 群二维码 ↓ **/
	qunQrcode: {
		list: {
			url: 'qunQrcode/list',
			auth: false,
			method: 'GET',
			desc: '查询群二维码列表',
		},
		seeQrcode: {
			url: 'qunQrcode/seeQrcode',
			auth: false,
			method: 'GET',
			desc: '查看群二维码',
		},
		add: {
			url: 'qunQrcode',
			auth: true,
			method: 'POST',
			desc: '新增群二维码',
		},
		edit: {
			url: 'qunQrcode',
			auth: true,
			method: 'PUT',
			desc: '修改群二维码',
		},
		delete: {
			url: 'qunQrcode',
			auth: true,
			method: 'DELETE',
			desc: '删除群二维码',
		},
		myList: {
			url: 'qunQrcode/myList',
			auth: true,
			method: 'GET',
			desc: '查询我的群二维码列表',
		},
		getMyQrcode: {
			url: 'qunQrcode/getMyQrcode',
			auth: false,
			method: 'GET',
			desc: '查看我的的群二维详情',
		},
		top: {
			url: 'qunQrcode/top',
			auth: true,
			method: 'POST',
			desc: '置顶群名片',
		},
	},
	config: {
		vip: {
			url: 'config/vip',
			auth: true,
			method: 'GET',
			desc: '会员配置',
		},
		vipList: {
			url: 'config/vipList',
			auth: true,
			method: 'GET',
			desc: '会员套餐列表',
		},
		vipShopInfo: {
			url: 'config/vipShopInfo',
			auth: true,
			method: 'GET',
			desc: '会员套餐详情',
		},
		goldList: {
			url: 'config/goldList',
			auth: true,
			method: 'GET',
			desc: '金币套餐列表',
		},
		goldShopInfo: {
			url: 'config/goldShopInfo',
			auth: true,
			method: 'GET',
			desc: '金币套餐详情',
		},
		agentList: {
			url: 'config/agentList',
			auth: true,
			method: 'GET',
			desc: '代理套餐列表',
		},
		agentShopInfo: {
			url: 'config/agentShopInfo',
			auth: true,
			method: 'GET',
			desc: '代理套餐详情',
		},
		payChannelList: {
			url: 'config/payChannelList',
			auth: true,
			method: 'GET',
			desc: '支付通道列表',
		},
		withdraw: {
			url: 'config/withdraw',
			auth: true,
			method: 'GET',
			desc: '提现配置',
		}
	},
	pay: {
		buy: {
			url: 'pay/buy',
			auth: true,
			method: 'POST',
			desc: '购买',
		},
		payByOrder: {
			url: 'pay/payByOrder',
			auth: false,
			method: 'POST',
			desc: '通过订单进行支付',
		}
	},
	withdraw: {
		withdraw: {
			url: 'withdraw/withdraw',
			auth: true,
			method: 'POST',
			desc: '提现',
		},
		cancel: {
			url: 'withdraw/cancel',
			auth: true,
			method: 'POST',
			desc: '取消提现',
		}
	},
	withdrawOrder: {
		list: {
			url: 'withdrawOrder/list',
			auth: true,
			method: 'GET',
			desc: '查询提现订单列表',
		}
	},
	billChangeMoney: {
		list: {
			url: 'billChangeMoney/list',
			auth: true,
			method: 'GET',
			desc: '查询余额帐变记录列表',
		}
	},
	billChangeGold: {
		list: {
			url: 'billChangeGold/list',
			auth: true,
			method: 'GET',
			desc: '查询金币帐变记录列表',
		}
	}
};
